REM: Builds and creates classes under folder 'classes' 
REM: (has been tested with jdk 1.6 and 1.7 on windows)

set JDK_DIR=C:\Program Files\Java\jdk1.7.0\bin\
set PATH=%PATH%;%JDK_DIR%

REM: Remember current working directory 
set CUR_DIR=%CD%

cd ../../

javac -classpath "src/java;lib/commons-compiler.jar;lib/janino.jar" -d "build/classes" src/java/gamepack/*.java
javac -classpath "src/java;lib/commons-compiler.jar;lib/janino.jar" -d "build/classes" src/java/tankattack/sprites/*.java
javac -classpath "src/java;lib/commons-compiler.jar;lib/janino.jar" -d "build/classes" src/java/tankattack/world/*.java
javac -classpath "src/java;lib/commons-compiler.jar;lib/janino.jar" -d "build/classes" src/java/tankattack/TankAttackApp.java

cd %CUR_DIR%

